package com.ymttest.database.mapping.thirdpartysync;

import com.ymttest.database.model.thirdpartysync.fenqilebrand;
import com.ymttest.database.model.thirdpartysync.fenqilebrandExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface fenqilebrandMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @SelectProvider(type=fenqilebrandSqlProvider.class, method="countByExample")
    int countByExample(fenqilebrandExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @DeleteProvider(type=fenqilebrandSqlProvider.class, method="deleteByExample")
    int deleteByExample(fenqilebrandExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @Delete({
        "delete from fenqilebrand",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @Insert({
        "insert into fenqilebrand (Id, YmtBrandId, ",
        "FqlBrandId, FqlBrandName, ",
        "FqlCategory3Ids, Action, ",
        "CreateTime, UpdateTime)",
        "values (#{id,jdbcType=INTEGER}, #{ymtBrandId,jdbcType=INTEGER}, ",
        "#{fqlBrandId,jdbcType=INTEGER}, #{fqlBrandName,jdbcType=VARCHAR}, ",
        "#{fqlCategory3Ids,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})"
    })
    int insert(fenqilebrand record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @InsertProvider(type=fenqilebrandSqlProvider.class, method="insertSelective")
    int insertSelective(fenqilebrand record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @SelectProvider(type=fenqilebrandSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="YmtBrandId", property="ymtBrandId", jdbcType=JdbcType.INTEGER),
        @Result(column="FqlBrandId", property="fqlBrandId", jdbcType=JdbcType.INTEGER),
        @Result(column="FqlBrandName", property="fqlBrandName", jdbcType=JdbcType.VARCHAR),
        @Result(column="FqlCategory3Ids", property="fqlCategory3Ids", jdbcType=JdbcType.VARCHAR),
        @Result(column="Action", property="action", jdbcType=JdbcType.INTEGER),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    List<fenqilebrand> selectByExample(fenqilebrandExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @Select({
        "select",
        "Id, YmtBrandId, FqlBrandId, FqlBrandName, FqlCategory3Ids, Action, CreateTime, ",
        "UpdateTime",
        "from fenqilebrand",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="Id", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="YmtBrandId", property="ymtBrandId", jdbcType=JdbcType.INTEGER),
        @Result(column="FqlBrandId", property="fqlBrandId", jdbcType=JdbcType.INTEGER),
        @Result(column="FqlBrandName", property="fqlBrandName", jdbcType=JdbcType.VARCHAR),
        @Result(column="FqlCategory3Ids", property="fqlCategory3Ids", jdbcType=JdbcType.VARCHAR),
        @Result(column="Action", property="action", jdbcType=JdbcType.INTEGER),
        @Result(column="CreateTime", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="UpdateTime", property="updateTime", jdbcType=JdbcType.TIMESTAMP)
    })
    fenqilebrand selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @UpdateProvider(type=fenqilebrandSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") fenqilebrand record, @Param("example") fenqilebrandExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @UpdateProvider(type=fenqilebrandSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") fenqilebrand record, @Param("example") fenqilebrandExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @UpdateProvider(type=fenqilebrandSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(fenqilebrand record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fenqilebrand
     *
     * @mbggenerated Mon Nov 04 17:05:13 CST 2019
     */
    @Update({
        "update fenqilebrand",
        "set YmtBrandId = #{ymtBrandId,jdbcType=INTEGER},",
          "FqlBrandId = #{fqlBrandId,jdbcType=INTEGER},",
          "FqlBrandName = #{fqlBrandName,jdbcType=VARCHAR},",
          "FqlCategory3Ids = #{fqlCategory3Ids,jdbcType=VARCHAR},",
          "Action = #{action,jdbcType=INTEGER},",
          "CreateTime = #{createTime,jdbcType=TIMESTAMP},",
          "UpdateTime = #{updateTime,jdbcType=TIMESTAMP}",
        "where Id = #{id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(fenqilebrand record);
}